﻿<UserControl x:Name="ssUserControl" x:Class="PRI_SliverlightSS_App.PRI_SliverlightSS"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" >
    <Grid x:Name="LayoutRoot" Background="Black">
        <Canvas x:Name="canvasAlbums" Height="500" Width="500" VerticalAlignment="Center" HorizontalAlignment="Center" Background="Black" MouseLeftButtonUp="canvasAlbum_MouseLeftButtonUp">
        </Canvas>
        <StackPanel Orientation="Vertical" HorizontalAlignment="Center" VerticalAlignment="Center">
            <TextBlock  x:Name="txtAlbumInfo" MaxHeight="250" MaxWidth="250" TextWrapping="Wrap" TextAlignment="Center">
                    <Run x:Name="txtAlbumInfo_Name" Foreground="Wheat" FontFamily="Verdana" FontSize="14" FontWeight="Bold">Hello Priyakant</Run>
                    <LineBreak/><LineBreak/>
                    <Run x:Name="txtAlbumInfo_Author" Foreground="Wheat" FontFamily="Verdana" FontSize="10">(Author: priyakant)</Run>
            </TextBlock>
        </StackPanel>
        <Canvas x:Name="canvasSlides">
            <Border x:Name="slideImageBorder" BorderBrush="Black" BorderThickness="2"  CornerRadius="3" Background="Black" >
                <!--<Image x:Name="slideImage" Source="http://localhost/priyakant_com_silverlight/gallery/kids/lg/7.jpg" Stretch="UniformToFill" />-->
                <Image x:Name="slideImage" Height="200" Width="200" Stretch="Uniform">
                </Image>
            </Border>
            <StackPanel x:Name="spThumbImage" Height="71" Width="104" Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="0,0,0,0">
                <Border BorderBrush="Black" BorderThickness="2"  CornerRadius="3" Background="Olive">
                    <!--<Image x:Name="imgThumbImage" Source="http://localhost/priyakant_com_silverlight/gallery/kids/lg/7.jpg" Height="67" Width="100" Stretch="UniformToFill" />-->
                    <Image x:Name="imgThumbImage" Height="67" Width="100" Stretch="UniformToFill" >
                        
                    </Image>
                </Border>
            </StackPanel>
        </Canvas>
        <Grid x:Name="spNav" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" MouseEnter="spNav_MouseEnter" MouseLeave="spNav_MouseLeave">
            <StackPanel x:Name="spNavBackground" Orientation="Horizontal" VerticalAlignment="Bottom" HorizontalAlignment="Stretch" Background="Black" Height="40" Opacity=".2"/>
            <StackPanel x:Name="spNavLeft_main" Orientation="Vertical" VerticalAlignment="Bottom" HorizontalAlignment="Left">
                <StackPanel x:Name="spNavLeft" Orientation="Horizontal">
                    <Button x:Name="btnNavSkipPrevPage" Width="20" Height="16" Content="&lt;" Margin="2,2,2,2" Background="Black" Click="btnNavSkipPrevPage_Click" />
                    <Button x:Name="btnNavPlayPause" Width="20" Height="16" Content="||" Margin="2,2,2,2" Background="Black" Click="btnNavPlayPause_Click" />
                    <Button x:Name="btnNavSkipNextPage" Width="20" Height="16" Content="&gt;" Margin="2,2,2,2" Background="Black" Click="btnNavSkipNextPage_Click" />
                </StackPanel>
                <StackPanel x:Name="spNavLeft2" Orientation="Horizontal">
                    <Button x:Name="btnNavSkipFirst" Width="20" Height="16" Content="|&lt;" Margin="2,2,2,2" Background="Black" Click="btnNavSkipFirst_Click" />
                    <Button x:Name="btnNavSkipLast" Width="20" Height="16" Content="&gt;|" Margin="2,2,2,2" Background="Black" Click="btnNavSkipLast_Click" />
                </StackPanel>
            </StackPanel>
            <StackPanel x:Name="spNavMain" Orientation="Horizontal" VerticalAlignment="Bottom" HorizontalAlignment="Center" SizeChanged="spNavMain_SizeChanged" >
                <StackPanel x:Name="spNavPic" Orientation="Horizontal" VerticalAlignment="Bottom" HorizontalAlignment="Center" />
            </StackPanel>
            <StackPanel x:Name="spNavRight_main" Orientation="Vertical" VerticalAlignment="Bottom" HorizontalAlignment="Right">
                <StackPanel x:Name="spNavRight" Orientation="Horizontal">
                    <Button Width="20" Height="16" Content="-" Margin="2,2,2,2" Background="Black" />
                    <Button x:Name="btnSelectAlbum" Width="20" Height="16" Content="^" Margin="2,2,2,2" Background="Black" Click="btnSelectAlbum_Click" />
                    <Button x:Name="btnFullScreen" Width="20" Height="16" Content="+" Margin="2,2,2,2" Background="Black" Click="btnFullScreen_Click" />
                </StackPanel>
                <StackPanel x:Name="spNavRight2" Orientation="Horizontal" HorizontalAlignment="Center" Background="Black">
                    <TextBlock x:Name="txtSlideCounter" FontFamily="Arial" FontSize="12" Foreground="AntiqueWhite"></TextBlock>
                </StackPanel>
            </StackPanel>
        </Grid>
        <StackPanel x:Name="spLoading" Orientation="Vertical" VerticalAlignment="Center">
            <Border Background="BurlyWood" Padding="5" CornerRadius="15" Width="100">
                <TextBlock FontSize="16" TextAlignment="Center">Loading...</TextBlock>
            </Border>
        </StackPanel>
        <Canvas x:Name="canvasHidden" Visibility="Collapsed" />
    </Grid>
    <UserControl.Resources>
        <Storyboard x:Name="sbUC_ShakeIt" >
            <DoubleAnimation x:Name="sbUC_ShakeIt_DA" Storyboard.TargetName="canvasHidden" Storyboard.TargetProperty="Angle" From="-3" To="3" Duration="0:0:1" SpeedRatio="3" AutoReverse="True" RepeatBehavior="Forever" />
        </Storyboard>
        <Storyboard x:Name="sbUC_JumpIt" >
            <DoubleAnimation x:Name="sbUC_JumpIt_DA" Storyboard.TargetName="canvasHidden" Storyboard.TargetProperty="Y" From="0" To="-5" Duration="0:0:1" SpeedRatio="3" AutoReverse="True" RepeatBehavior="Forever" />
        </Storyboard>
        <Storyboard x:Name="sbUC_GrowThumb" >
            <DoubleAnimation x:Name="sbUC_GrowThumb_DA_Width" Storyboard.TargetName="canvasHidden" Storyboard.TargetProperty="Width" To="144" Duration="0:0:1" SpeedRatio="4" AutoReverse="False" />
            <DoubleAnimation x:Name="sbUC_GrowThumb_DA_Height" Storyboard.TargetName="canvasHidden" Storyboard.TargetProperty="Height" To="108" Duration="0:0:1" SpeedRatio="4" AutoReverse="False" />
        </Storyboard>
        <Storyboard x:Name="sbUC_ShrinkThumb">
            <DoubleAnimation x:Name="sbUC_ShrinkThumb_DA_Width" Storyboard.TargetName="canvasHidden" Storyboard.TargetProperty="Width" To="40" Duration="0:0:1" SpeedRatio="4" AutoReverse="False" />
            <DoubleAnimation x:Name="sbUC_ShrinkThumb_DA_Height" Storyboard.TargetName="canvasHidden" Storyboard.TargetProperty="Height" To="40" Duration="0:0:1" SpeedRatio="4" AutoReverse="False" />
        </Storyboard>
    </UserControl.Resources>
</UserControl>
